package org.mashart.pink.m.ws;

import org.mashart.pink.m.gps.Waypoint;

/**
 *
 * @author peng
 */
public class FakeWsConnector implements WsConnector{

    public int configure(){return 1;}
    /* TODO add arguments to reconfigure the client, e.g.
     *      POST url, parameters format, etc. */

    /**
     * Establishes connection with the server, if needed
     */
    public int initialize(){return 1;}

    /**
     * Send GPS coordinates updates to the server
     */
    public int push(Waypoint wp){return 1;}

    /**
     * Send bytes to the server
     */
    public int push(byte[] b){
        System.out.println(new String(b));
        return 1;
    }

    /**
     * Called back on exit... or pause?
     */
    public int terminate(){return 1;}
}
